package cn.csust.net2.manager.shared.service;

import java.util.List;

import cn.csust.net2.manager.shared.po.Authority;
import cn.csust.net2.manager.shared.po.Role;

import com.google.gwt.user.client.rpc.AsyncCallback;


/** 
 * @author 韩忠金
 * @version 创建时间：2012-1-30 上午10:41:57 
 * 类说明 
 */
public interface AuthorizationServiceAsync extends BaseServiceAsync{

	void loadRole(Long userId, AsyncCallback<List<Role>> callback);

	void addRole(Long userId, int roleId, AsyncCallback<List<Role>> callback);

	void loadRoles(AsyncCallback<List<Role>> callback);

	void loadAuthorityById(int roleID, AsyncCallback<List<Authority>> callback);

	void deleteRole(Long userId, int roleId, AsyncCallback<List<Role>> callback);

	

}
